package Exception_package;

import java.io.IOException;

public class MethodThrow {
	void doStuff()
	{
		try 
		{
			doMore();
		} 
		catch (IOException e) 
		{	
			//e.printStackTrace();
			System.out.println("Hello");
			System.out.println(e.getMessage());
		}
	}
	void doMore() throws IOException
	{
		throw new IOException();
	}
	public static void main(String[] args) 
	{
		MethodThrow mt = new MethodThrow();
		mt.doStuff();
	}

}
